package com.briup.service;

import java.util.List;

import com.briup.bean.OrderForm;

public interface IOrderFormService {
    /**
     * 保存订单
     *
     * @param of
     */
    void saveOrderForm(OrderForm of);

    /**
     * 通过orderid找到订单
     *
     * @param orderid orderid
     * @return {@link OrderForm}
     */
    OrderForm findOrderFormByOrderid(Integer orderid);

    /**
     * 根据用户ID查找订单信息
     *
     * @param id id
     * @return {@link List}<{@link OrderForm}>
     */
    List<OrderForm> findOrderFormByCustomerId(Integer id);

    /**
     * 根据订单ID删除订单信息
     *
     * @param id id
     */
    void deleteOrderFormById(Integer id);
}
